package com.cd.song.jpa.repo;


import com.cd.song.jpa.domain.Song;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @Description create by JPA BUDDY
 * @Author lqq
 * @Date 2024/8/20 9:43
 **/
@Repository
public interface SongRepo extends JpaRepository<Song, Long> {


    //按照作者搜索
    List<Song> findByArtist(String artist);

    //按照类型搜索
    List<Song> findByType(String type);

    //按照名称搜索
    List<Song> findByTitle(String title);


}
